package day03;

import org.w3c.dom.ls.LSOutput;

public class IfElseIfDemo {
    public static void main(String[] args){
        //满两千打五折，满一千不满两千打七折，满五百不满以前打八折，不满五百打九折
        double price = 900;
        if(price>=1000){
            price*=0.5;
        }else if(price >= 1000 && price<2000){
            price*=0.7;
        }else if(price>=500&&price<1000){
            price*=0.8;
        }else if(price<500){
            price*=0.9;

        }
        System.out.println("最终结算金额为："+price);
    }



}
